function newhome(json) {
img  = new Array();
for (var i = 0; i < 10; i++) { var entry = json.feed.entry[i]; var tieude = entry.title.$t; var linkurl; if (i == json.feed.entry.length) break; 
for (var k = 0; k < entry.link.length; k++) { if (entry.link[k].rel == 'alternate') { linkurl = entry.link[k].href; break } } 	
if ("content" in entry) { var noidung = entry.content.$t } else if ("summary" in entry) { var noidung = entry.summary.$t } 
else var noidung=""; s = noidung;  a = s.indexOf("<img"); b = s.indexOf("src=\"", a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5); 
if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!=""))  {img[i] = d;} 
else {img[i]="https://lh5.googleusercontent.com/-ITbPaSgdVCY/UGv1jY1A88I/AAAAAAAABFA/Zm4OtVtBfDY/s153/logo4.png";} 
B = img[i].split("/");

var l ='<div class="gioithieu" title="'+rutgon(noidung,30)+' ..."><img src="'+img[i]+'" title="'+tieude+'"><a class="title" href="'+linkurl+'" title="'+tieude+'">'+rutgon(tieude,6)+'...</a>'+rutgon(noidung,20)+' ...</div>';
var m = '<li><a href="'+linkurl+'" style="white-space:nowrap;" title="'+tieude+'">'+rutgon(tieude,10)+'...</a></li>';
if ((i >= 0) && (i < 4)) { var n = l }
document.write(n) }}
/*.......................*/
function newhome2(json) {
img  = new Array();
for (var i = 0; i < 10; i++) { var entry = json.feed.entry[i]; var tieude = entry.title.$t; var linkurl; if (i == json.feed.entry.length) break; 
for (var k = 0; k < entry.link.length; k++) { if (entry.link[k].rel == 'alternate') { linkurl = entry.link[k].href; break } } 	
if ("content" in entry) { var noidung = entry.content.$t } else if ("summary" in entry) { var noidung = entry.summary.$t } 
else var noidung=""; s = noidung;  a = s.indexOf("<img"); b = s.indexOf("src=\"", a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5); 
if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!=""))  {img[i] = d;} 
else {img[i]="https://lh5.googleusercontent.com/-ITbPaSgdVCY/UGv1jY1A88I/AAAAAAAABFA/Zm4OtVtBfDY/s153/logo4.png";} 
B = img[i].split("/");

var l2 ='<div class="gioithieu" title="'+rutgon(noidung,30)+' ..."><img src="'+img[i]+'" title="'+tieude+'"><a class="title" href="'+linkurl+'" title="'+tieude+'">'+rutgon(tieude,6)+'...</a>'+rutgon(noidung,20)+' ...</div>';
var m2 = '<li><a href="'+linkurl+'" style="white-space:nowrap;" title="'+tieude+'">'+rutgon(tieude,10)+'...</a></li>';
if ((i >= 0) && (i < 2)) { var n2 = l2 }
if (i == 2) { var n2 = '<div class="listh"><ul>' + m2 }
if ((i > 2) && (i < 5 - 1)) { var n2 = m2 }
if (i == 5 - 1) { var n2 = m2 + '</ul></div>' }
document.write(n2) }}
/*........................*/
function newhome3(json) {
img  = new Array();
for (var i = 0; i < 10; i++) { var entry = json.feed.entry[i]; var tieude = entry.title.$t; var linkurl; if (i == json.feed.entry.length) break; 
for (var k = 0; k < entry.link.length; k++) { if (entry.link[k].rel == 'alternate') { linkurl = entry.link[k].href; break } } 	
if ("content" in entry) { var noidung = entry.content.$t } else if ("summary" in entry) { var noidung = entry.summary.$t } 
else var noidung=""; s = noidung;  a = s.indexOf("<img"); b = s.indexOf("src=\"", a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5); 
if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!=""))  {img[i] = d;} 
else {img[i]="https://lh5.googleusercontent.com/-ITbPaSgdVCY/UGv1jY1A88I/AAAAAAAABFA/Zm4OtVtBfDY/s153/logo4.png";} 
B = img[i].split("/");

var l3 ='<div class="gioithieu" title="'+rutgon(noidung,30)+' ..."><img src="'+img[i]+'" title="'+tieude+'"><a class="title" href="'+linkurl+'" title="'+tieude+'">'+rutgon(tieude,6)+'...</a>'+rutgon(noidung,20)+' ...</div>';
var m3 = '<li><a href="'+linkurl+'" style="white-space:nowrap;" title="'+tieude+'">'+rutgon(tieude,10)+'...</a></li>';
if ((i >= 0) && (i < 3)) { var n3 = l3 }
if (i == 3) { var n3 = '<div class="listh"><ul>' + m3 }
if ((i > 3) && (i < 5 - 1)) { var n3 = m }
if (i == 5 - 1) { var n3 = m3 + '</ul></div>' }
document.write(n3) }}
/*.........................*/
function newhome1(json) {
img  = new Array();
for (var i = 0; i < 10; i++) { var entry = json.feed.entry[i]; var tieude = entry.title.$t; var linkurl; if (i == json.feed.entry.length) break; 
for (var k = 0; k < entry.link.length; k++) { if (entry.link[k].rel == 'alternate') { linkurl = entry.link[k].href; break } } 	
if ("content" in entry) { var noidung = entry.content.$t } else if ("summary" in entry) { var noidung = entry.summary.$t } 
else var noidung=""; s = noidung;  a = s.indexOf("<img"); b = s.indexOf("src=\"", a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5); 
if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!=""))  {img[i] = d;} 
else {img[i]="https://lh5.googleusercontent.com/-ITbPaSgdVCY/UGv1jY1A88I/AAAAAAAABFA/Zm4OtVtBfDY/s153/logo4.png";} 
B = img[i].split("/");

var l1 ='<div class="gioithieu" title="'+rutgon(noidung,30)+' ..."><img src="'+img[i]+'" title="'+tieude+'"><a class="title" href="'+linkurl+'" title="'+tieude+'">'+rutgon(tieude,6)+'...</a>'+rutgon(noidung,20)+' ...</div>';
var m1 = '<li><a href="'+linkurl+'" style="white-space:nowrap;" title="'+tieude+'">'+rutgon(tieude,10)+'...</a></li>';
if (i == 0) { var n1 = l1 }
if (i == 1) { var n1 = '<div class="listh"><ul>' + m1 }
if ((i > 1) && (i < 5 - 1)) { var n1 = m1 }
if (i == 5 - 1) { var n1 = m1 + '</ul></div>' }
document.write(n1) }}